<?php
/**
 * Object Relational Persistence Mapping Class for table: pha_ewh_valuate
 *
 * @package	modules.dept_pharmacy.ordo
 * @author	viethd
 * @version $
 * @copyright 2009 LHV Company
 */
class PhaEwhValuate extends ORDataObject {

    /**#@+
     * Fields of table: pha_ewh_valuate mapped to class members
     */
    var $pha_ewh_valuate_id		= '';
    var $pha_ewh_imticket_detail_id		= '';
    var $valuator_user_id		= '';
    var $date		= '';
    var $insurance_price		= '';
    var $service_price		= '';
    var $enum_valuate_method		= '';
    var $enum_rate_type = '';
    var $ref_imticket_detail_id		= '';
    var $service_rate		= '';
    var $insurance_rate		= '';
    /**#@-*/


    /**
     * DB Table
     */
    var $_table = 'pha_ewh_valuate';

    /**
     * Primary Key
     */
    var $_key = 'pha_ewh_valuate_id';

    /**
     * Internal Name
     */
    var $_internalName = 'PhaEwhValuate';

    /**
     * Handle instantiation
     */
    function __construct() {
        parent::ORDataObject();
    }

    public function setData($data = array()) {
        if (is_array($data)) {
            $this->populateArray($data);
        }
    }
    
    public function deleteItem($phaEwhImticketDetailId) {
         
        $sql = "DELETE FROM $this->_table WHERE pha_ewh_imticket_detail_id='$phaEwhImticketDetailId'";
        $this->_execute($sql);

    }

}
?>
